import request from './request.js'
import Cookies from 'js-cookie';
export const getCode=(email)=>{
    return request({
        url:'/getcode',
        method:'get',
        params:{
            email
        }
    })
}

export const register=(data)=>{
    return request({
        url:'/register',
        method:'post',
        data
    })
}

export const login=(data)=>{
    return request({
        url:'/login',
        method:'post',
        data
    })
}

export const loginByToken=()=>{
    return request({
        url:'/loginByToken',
        method:'get',
    })
}

export const addUserAction=()=>{
    return request({
        url:'userAction/addUserVisitAction',
        method:'get',
    })
}

export const getUserCountByday=()=>{
    return request({
        url:'userAction/getLastAllUserNumber',
        method:'get',
    })
}